package com.gamadu.spaceshipwarrior.desktop;

import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.gamadu.spaceshipwarrior.utils.ImagePacker;
import com.gamadu.spaceshipwarrior.SpaceshipWarrior;

public class DesktopLauncher {
	public static void main(String[] args) {
		// Images are already packed.
		// ImagePacker.run();
		
		LwjglApplicationConfiguration lwjglApplicationConfiguration = new LwjglApplicationConfiguration();
		lwjglApplicationConfiguration.fullscreen = false;
		lwjglApplicationConfiguration.width = SpaceshipWarrior.FRAME_WIDTH;
		lwjglApplicationConfiguration.height = SpaceshipWarrior.FRAME_HEIGHT;
		// Not supported in texture packer 2.
		// lwjglApplicationConfiguration.useCPUSynch = false;
		lwjglApplicationConfiguration.vSyncEnabled = false;
		lwjglApplicationConfiguration.title = "Spaceship Warrior";
		new LwjglApplication(new SpaceshipWarrior(), lwjglApplicationConfiguration);
	}
}
